package cheme.ProcessEditor.Figures;

import org.eclipse.draw2d.Label;

import cheme.ProcessEditor.ChemePresentation;
import cheme.ProcessEditor.Figures.Util.CompartmentFig;
import cheme.ProcessEditor.Figures.Util.TitleFig;
import cheme.ProcessEditor.Table.ListFig;

public class EquationsFig extends ListFig
{
	CompartmentFig equationCompartment;
	
	public EquationsFig()
	{
		super();
		
		TitleFig title = new TitleFig(ChemePresentation.TableEditors.Equations.Title.title);
		title.setToolTip(new Label("You can drag this equation widget move it out of your way."));
		add(title);
		
		equationCompartment = new CompartmentFig();
		add(equationCompartment);
	}
	
	protected void initPresentation()
	{
		super.initPresentation();

		setPresentation(
				ChemePresentation.TableEditors.Equations.background,
				ChemePresentation.TableEditors.Equations.foreground,
				ChemePresentation.TableEditors.Equations.border
		);
	}
	
	public CompartmentFig getEquationsCompartment()
	{
		return equationCompartment;
	}
}
